<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<h2>tag list</h2>

<form id="form" name="form" method="get" action="/tag/list.html">
<table>
	<tr>
		<th>뭘까?</th>
		<td><input type="text" name="keyword" value="${search.keyword}" /></td>
		<td><input type="submit" value="검색"/></td>
	</tr>
</table>
</form>

<table>
	<tr>
		<th>id</th>
		<th>name</th>
		<th>order</th>
		<th>eventYN</th>
		<th>registeDate</th>
	</tr>
	<c:forEach items="${tagList}" var="each">
	<tr>
		<td><a href="/tag/view.html?id=${each.id}">${each.id}</a></td>
		<td><a href="/admin/koreaflower/tag/form.html?id=${each.id}">${each.name}</a></td>
		<td>${each.orderNo}</td>
		<td>${each.eventYN}</td>
		<td>${each.registeDate}</td>
	</tr>	
	</c:forEach>
</table>
<div>
<p><a href="/admin/koreaflower/tag/form.html">등록</a></p>
</div>